package toubiao.utils;

import toubiao.exception.CustomException;

public class ProUtilFileSuffix {

	static public String getFileSuffix(String fileType) throws CustomException{
		String suffix="";
		if(fileType.equalsIgnoreCase("excel")){
			suffix=".xlsx";
		}else if(fileType.equalsIgnoreCase("docx")){
			suffix=".docx";
		}else {
			throw new CustomException("文件参数类型错误");
		}
		return suffix;
	}
}
